<?php 
namespace Admin\Model;
use Think\Model\ViewModel;
class ProductViewModel extends ViewModel {
   public $viewFields = array(
     'product'=>array('id','name','cate_id','time','type','status','order_number'),
     'category'=>array('name'=>'category_name', '_on'=>'product.cate_id=category.id'),
   );
 }

?>